<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./vue.js"></script>
    <style>
        .box{
            width:200px;
            height:200px;
            background: rgb(134, 97, 97);
        }
        
    </style>
</head>
<body>
    <div id="app">
        <button @click="isShow = !isShow">显示/隐藏</button>
        <div class="box" v-if="isShow">if</div>
        <!-- <div class="box" v-show="isShow"></div> -->
    </div>
    <script>
        let vm = new Vue({
            el:"#app",
            data:{
                isShow:false
            }
        })
    </script>
</body>
</html>